package com.imut.hcdp.mapper;

import java.util.List;
import com.imut.hcdp.domain.HcdpPassenger;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface HcdpPassengerMapper
{

    public HcdpPassenger selectHcdpPassengerById(Long id);


    public List<HcdpPassenger> selectHcdpPassengerList(HcdpPassenger hcdpPassenger);


    public int insertHcdpPassenger(HcdpPassenger hcdpPassenger);


    public int updateHcdpPassenger(HcdpPassenger hcdpPassenger);


    public int deleteHcdpPassengerById(Long id);


    public int deleteHcdpPassengerByIds(Long[] ids);

    List<HcdpPassenger> selectHcdpPassengerListByRouteId(@Param("id") Long id,@Param("seatId") Long seatId);

    void deleteHcdpPassengerByOrderId(Long id);

    Double selectRoutePrice(@Param("userCard") String userCard, @Param("orderId")Long orderId, @Param("outTradeNo") String outTradeNo);

    List<Long> selectHcdpPassengerListByRouteId2(@Param("id") Long id,@Param("seatId") Long seatId,@Param("routeId") Long routeId);
}
